package weiy.top.modules.attr.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import weiy.top.common.util.PageUtils;
import weiy.top.modules.attr.entity.PmsAttr;
import com.baomidou.mybatisplus.extension.service.IService;
import weiy.top.modules.attr.vo.AttrGroupRelationVo;
import weiy.top.modules.attr.vo.AttrRespVo;
import weiy.top.modules.attr.vo.AttrVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: pms_attr
 * @Author: weihancheng
 * @Date:   2021-11-24
 * @Version: V1.0
 */
public interface IPmsAttrService extends IService<PmsAttr> {

    void saveMain(AttrVo attrVo);

    PageUtils queryBaseAttrPageList(HttpServletRequest req, QueryWrapper<PmsAttr> queryWrapper, Page<PmsAttr> page);

    AttrRespVo getByIdMain(String id);

    void updateByIdMain(AttrVo attrVo);

    void deleteRelation(AttrGroupRelationVo[] vos);
}
